<?php /* Smarty version 2.6.19, created on 2012-12-24 00:18:12
         compiled from vietcad/header.tpl.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<?php echo $this->_tpl_vars['siteConfigs']->getProperty('keywords'); ?>
"/>
<meta name="description" content="<?php echo $this->_tpl_vars['pageName']; ?>
,<?php echo $this->_tpl_vars['siteConfigs']->getProperty('description'); ?>
 "/>
<meta name="Robots" content="index,all"/>
<meta name = "format-detection" content = "telephone=no">
<title><?php echo $this->_tpl_vars['pageName']; ?>
 - VietCad</title>
<link href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/css/jquery-ui-1.8.20.custom.css" rel="stylesheet">
<link rel="stylesheet" href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/css/style.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/css/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/css/style-banner.css" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/danhmuc-menu-jquery.js"></script>
<script src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/jquery-1.4.3.min.js"></script>
<script src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/jquery-ui-1.8.20.custom.min.js"></script>
<script src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/jquery-1.js" type="text/javascript"></script>
<!--slider-sp-chinh--><script src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/jcarousellite_1.0.1.pack-hot.js " type="text/javascript"></script>
<!--slider-sp-chinh--><script src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/call_jcarousel-hot.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/js/jquery.vietcad.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/highslide/highslide-full.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/highslide/highslide.css" />
<?php echo '
<script language="javascript">
hs.graphicsDir = \'/vietcad/templates/vietcad/highslide/graphics/\';
hs.align = \'center\';
hs.transitions = [\'expand\', \'crossfade\'];
hs.outlineType = \'rounded-white\';
hs.showCredits = false;
hs.wrapperClassName = \'draggable-header\';
hs.fadeInOut = true;
hs.dimmingOpacity = 0.75;
hs.addSlideshow({	
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: \'fit\',
	overlayOptions: {
		opacity: 0.75,
		position: \'bottom center\',
		hideOnMouseOut: true
	}
});
</script>
'; ?>

</head>

<body>
<div class="container1">
	<div class="nen_header"></div> 
    	<div class="content" >
            <div class="header" >
             <div class="menu_header" align="right">
                <ul >
                        <li><a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/index.html">Trang Chủ</a></li>
                        <li class="cachmenu_header"></li>
                        <li><a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gioi-thieu.html">Giới Thiệu</a></li>
                        <li class="cachmenu_header"></li>
                        <li><a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/bang-gia-viet-cad.html">Bảng Giá</a></li>
                        <li class="cachmenu_header"></li>
                        <li><a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/lien-he.html">Liên Hệ</a></li>
                </ul>
                </div>
            </div>
                    <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/images/logan.png" align="left" />
                    <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/images/qc_header.png" align="right" />
            <div class="menu1">
                <?php if ($this->_tpl_vars['authUser']): ?>
                <div class="infoUser">
                    <span>Xin chào, <?php echo $this->_tpl_vars['authUser']->getUsername(); ?>
 &nbsp;&nbsp;| </span>
                    <a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/logout.html">
                        Thoát
                    </a> 
                </div>
                <?php else: ?>
                <a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/dang-ky.html">
                    <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/images/dangky.png" />&nbsp;&nbsp;Đăng ký
                </a>
                <a href="#" id="dangnhap">
                    <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/images/dangnhap.png" />&nbsp;&nbsp;Đăng nhập
                </a>
                <?php endif; ?>
                <a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/index.php?op=shopping&lang=vn">
                    <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/images/giohang.png" />
                    &nbsp;&nbsp;<?php echo $this->_tpl_vars['messages']['cart']; ?>
<?php if ($this->_tpl_vars['count_item'] != 0): ?>(<?php echo $this->_tpl_vars['count_item']; ?>
)<?php endif; ?>
                </a>
                <form style=" float:left; margin-top:4px;" 
                      action="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/index.php" method="post" name="quicksearch">
                    <input type="text" id="txttim" name="keywords" value=""   />
                    <input id="btntim" type="submit" value="" />
                    <input type="hidden" value="search" name="op">
                </form>
            </div>
       		<div class="menu-top">
            <ul>
                <li <?php if ($this->_tpl_vars['active'] == 'san-pham'): ?>class="active"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/san-pham.html"><span>SẢN PHẨM</span></a>
                <?php if ($this->_tpl_vars['productcateItems']): ?>
                	<ul>
                    <?php $_from = $this->_tpl_vars['productcateItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['productcateItem']):
?>
                     	<li><a href="<?php echo $this->_tpl_vars['productcateItem']->getUrl($this->_tpl_vars['lang']); ?>
"><?php echo $this->_tpl_vars['productcateItem']->getName(); ?>
</a>
                        </li>
                     <?php endforeach; endif; unset($_from); ?>

                     </ul>
                <?php endif; ?>
                </li>
                <li class="cachmenu2"></li>
                <?php if ($this->_tpl_vars['productcateItems']): ?>
                <?php $_from = $this->_tpl_vars['productcateItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['productcateItem']):
?>
                 <?php $this->assign('pid', $this->_tpl_vars['productcateItem']->getId()); ?>
                <li <?php if ($this->_tpl_vars['active'] == $this->_tpl_vars['pid']): ?>class="active"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['productcateItem']->getUrl($this->_tpl_vars['lang']); ?>
" title="<?php echo $this->_tpl_vars['productcateItem']->getName(); ?>
"><span><?php echo $this->_tpl_vars['productcateItem']->getName(); ?>
</span></a>
               
             	<?php $this->assign('subProductCate', $this->_tpl_vars['productcategories']->getSubProCategory($this->_tpl_vars['pid'])); ?>
                                
                	<?php if ($this->_tpl_vars['subProductCate']): ?>
                	<ul>
                    <?php $_from = $this->_tpl_vars['subProductCate']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['legoItem']):
?>
                     	<li><a href="<?php echo $this->_tpl_vars['legoItem']->getUrl($this->_tpl_vars['lang']); ?>
"><?php echo $this->_tpl_vars['legoItem']->getName(); ?>
</a>
                        </li>
                     <?php endforeach; endif; unset($_from); ?>

                     </ul>
                	<?php endif; ?>
                </li>
                <li class="cachmenu2"></li>
                <?php endforeach; endif; unset($_from); ?>
                <?php endif; ?>

                <li><a href="#"><span>FORUM</span></a>
                <li class="cachmenu2"></li>
                <li><a href="#"><span>TÀI LIỆU</span></a>
                <?php if ($this->_tpl_vars['downloadAlbumItems']): ?>
                	<ul>
                    <?php $_from = $this->_tpl_vars['downloadAlbumItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['downloadAlbumItem']):
?>
                     	<li><a href="<?php echo $this->_tpl_vars['downloadAlbumItem']->getUrlGalleryAlbum($this->_tpl_vars['lang']); ?>
"><?php echo $this->_tpl_vars['downloadAlbumItem']->getName(); ?>
</a>
                        </li>
                     <?php endforeach; endif; unset($_from); ?>

                     </ul>
                <?php endif; ?>
                
            </ul>
        </div>
        
     </div>
    <div class="khung_js" style="visibility: visible; overflow: hidden; position: relative; z-index: 2; left: 0px;">
    			<div id="zalen">
                 <?php if ($this->_tpl_vars['adsItems']): ?>
                 
                        <div id="slider-wrapper">
                            <div id="slider" class="nivoSlider" >
                             <?php $_from = $this->_tpl_vars['adsItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['adsItem']):
?>
                                <a href="http://<?php echo $this->_tpl_vars['adsItem']->getUrl(); ?>
"><img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/avatar_upload/ads/storage/<?php echo $this->_tpl_vars['adsItem']->getLogoUrl(); ?>
" alt="" /></a>
                            <?php endforeach; endif; unset($_from); ?>   
                           </div>
                           <?php echo '
                           <script type="text/javascript">
                       		 $(window).load(function() {
                           		 $(\'#slider\').nivoSlider({
								//controlNav: false,
								//directionNav: false
								});
                        	});
                    	</script>
                    '; ?>

                    
                        </div>  
                  <?php endif; ?> 
                                           
                    </div>
        </div>
       
   <div class="cachcontent"></div>
</div>
<div class="container">